#!/usr/bin/env python3
import logging


def use_logging(f):
    def wrapper(*args, **kwargs):
        logging.warn('%s is running' % f.__name__)
        return f(*args, **kwargs)

    return wrapper


@use_logging
def bar():
    print('i am bar')


@use_logging
def foo():
    print('i am foo')


bar()
foo()
